package com.unidt.www.module.expert.controller.admin;

import com.unidt.www.framework.common.pojo.CommonResult;
import com.unidt.www.module.expert.form.ExpertConfirmForm;
import com.unidt.www.module.expert.service.IInvExpertConfirmService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author sk
 * @Description: 专家确认
 * @Date 2022/12/26 13:27
 **/
@Api(tags = "专家邀约-专家确认")
@RestController
@RequestMapping("/expert/invitation_confirm")
public class ExpertConfirmController {

    @Autowired
    IInvExpertConfirmService invExpertConfirmService;

    /**
     * 功能描述: 专家确认
     * @author sk
     * @date 2023/1/3
     * @param expertConfirmForm
     * @return com.unidt.www.framework.common.pojo.CommonResult
     */
    @PostMapping("/confirm")
    @ApiOperation(value = "专家确认")
    public CommonResult confirm(@RequestBody ExpertConfirmForm expertConfirmForm){

        return  this.invExpertConfirmService.confirm(expertConfirmForm);

    }
}
